package jjn.acwing.contest.issue119;

import java.util.HashMap;
import java.util.Map;
import java.util.Scanner;

/**
 * @author Jjn
 * @since 2023/9/2 19:14
 */
public class Acwing5144 {
    public static void main(String[] args) {
        Map<Integer, String> map = new HashMap<>();
        map.put(0, "zero");
        map.put(1, "one");
        map.put(2, "two");
        map.put(3, "three");
        map.put(4, "four");
        map.put(5, "five");
        map.put(6, "six");
        map.put(7, "seven");
        map.put(8, "eight");
        map.put(9, "nine");
        map.put(10, "ten");
        map.put(11, "eleven");
        map.put(12, "twelve");
        map.put(13, "thirteen");
        map.put(14, "fourteen");
        map.put(15, "fifteen");
        map.put(16, "sixteen");
        map.put(17, "seventeen");
        map.put(18, "eighteen");
        map.put(19, "nineteen");
        map.put(20, "twenty");
        map.put(30, "thirty");
        map.put(40, "forty");
        map.put(50, "fifty");
        map.put(60, "sixty");
        map.put(70, "seventy");
        map.put(80, "eighty");
        map.put(90, "ninety");
        Scanner scanner = new Scanner(System.in);
        while (scanner.hasNext()) {
            int i = scanner.nextInt();
            if (map.containsKey(i)) {
                String s = map.get(i);
                System.out.println(s);
            } else {
                int first = i % 10;
                int second = (i / 10) * 10;
                String res = map.get(second) + "-" + map.get(first);
                System.out.println(res);
            }
        }
    }
}
